home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
dev
/
lang
/
SmallEiffel.lha
/
SmallEiffel
/
bin_c
/
short2.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-12-22
|
5KB
|
366 lines
/*
-- ANSI C code generated by :
-- SmallEiffel The GNU Eiffel Compiler -- Release (- 0.79) --
-- Copyright (C), 1994-98 - LORIA - UHP - CRIN - INRIA - FRANCE --
-- Dominique COLNET and Suzanne COLLIN - colnet@loria.fr --
-- http://www.loria.fr/SmallEiffel --
*/
#include "short.h"
T227 r227realloc(T227 C,T2 a1,T2 a2){
T227 R=NULL;
R=calloc(a2,sizeof(T0*));
r227copy_from(R,C,(a1)-(1));
return R;
}
void r227copy_from(T227 C,T227 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T70 r70realloc(T70 C,T2 a1,T2 a2){
T70 R=NULL;
R=calloc(a2,sizeof(T0*));
r70copy_from(R,C,(a1)-(1));
return R;
}
T6 r70equal_like(T0* a1,T0* a2){
T6 R=0;
/*[IF*/
/*AF*//*AF*/if((a1)==((void*)(a2))){
R=1;
}
else if(((a1)==((void*)(NULL)))||((a2)==((void*)(NULL)))){
}
else{
R=r69is_equal(((T69*)a1),a2);
}
/*FI]*/
return R;
}
T2 r70fast_index_of(T70 C,T0* a1,T2 a2){
T2 R=0;
while (!(((R)>(a2))||((a1)==((void*)((C)[R]))))) {
R=(R)+(1);
}
return R;
}
void r70copy_from(T70 C,T70 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T2 r70index_of(T70 C,T0* a1,T2 a2){
T2 R=0;
while (!(((R)>(a2))||(r70equal_like(a1,(C)[R])))) {
R=(R)+(1);
}
return R;
}
T353 r353realloc(T353 C,T2 a1,T2 a2){
T353 R=NULL;
R=calloc(a2,sizeof(T0*));
r353copy_from(R,C,(a1)-(1));
return R;
}
void r353clear_all(T353 C,T2 a1){
T2 _i=0;
T0* _v=NULL;
_i=a1;
while (!((_i)<(0))) {
(C)[_i]=(_v);
_i=(_i)-(1);
}
}
void r353copy_from(T353 C,T353 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T65 r65realloc(T65 C,T2 a1,T2 a2){
T65 R=NULL;
R=calloc(a2,sizeof(T0*));
r65copy_from(R,C,(a1)-(1));
return R;
}
void r65set_all_with(T65 C,T0* a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=(a1);
_i=(_i)-(1);
}
}
T2 r65fast_index_of(T65 C,T0* a1,T2 a2){
T2 R=0;
while (!(((R)>(a2))||((a1)==((void*)((C)[R]))))) {
R=(R)+(1);
}
return R;
}
void r65copy_from(T65 C,T65 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T99 r99realloc(T99 C,T2 a1,T2 a2){
T99 R=NULL;
R=calloc(a2,sizeof(T0*));
r99copy_from(R,C,(a1)-(1));
return R;
}
void r99clear_all(T99 C,T2 a1){
T2 _i=0;
T0* _v=NULL;
_i=a1;
while (!((_i)<(0))) {
(C)[_i]=(_v);
_i=(_i)-(1);
}
}
void r99copy_from(T99 C,T99 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T185 r185realloc(T185 C,T2 a1,T2 a2){
T185 R=NULL;
R=calloc(a2,sizeof(T0*));
r185copy_from(R,C,(a1)-(1));
return R;
}
void r185copy_from(T185 C,T185 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T347 r347realloc(T347 C,T2 a1,T2 a2){
T347 R=NULL;
R=calloc(a2,sizeof(T6));
r347copy_from(R,C,(a1)-(1));
return R;
}
void r347set_all_with(T347 C,T6 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=(a1);
_i=(_i)-(1);
}
}
void r347move(T347 C,T2 a1,T2 a2,T2 a3){
T2 _i=0;
/*[IF*/
if((a3)==(0)){
}
else if((a3)<(0)){
_i=a1;
while (!((_i)>(a2))) {
(C)[(_i)+(a3)]=((C)[_i]);
_i=(_i)+(1);
}
}
else{
_i=a2;
while (!((_i)<(a1))) {
(C)[(_i)+(a3)]=((C)[_i]);
_i=(_i)-(1);
}
}
/*FI]*/
}
void r347copy_from(T347 C,T347 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
void r347clear(T347 C,T2 a1,T2 a2){
T2 _i=0;
T6 _v=0;
_i=a1;
while (!((_i)>(a2))) {
(C)[_i]=(_v);
_i=(_i)+(1);
}
}
T63 r63realloc(T63 C,T2 a1,T2 a2){
T63 R=NULL;
R=calloc(a2,sizeof(T2));
r63copy_from(R,C,(a1)-(1));
return R;
}
void r63set_all_with(T63 C,T2 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=(a1);
_i=(_i)-(1);
}
}
T2 r63fast_index_of(T63 C,T2 a1,T2 a2){
T2 R=0;
while (!(((R)>(a2))||((a1)==((C)[R])))) {
R=(R)+(1);
}
return R;
}
void r63copy_from(T63 C,T63 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T342 r342realloc(T342 C,T2 a1,T2 a2){
T342 R=NULL;
R=calloc(a2,sizeof(T0*));
r342copy_from(R,C,(a1)-(1));
return R;
}
void r342set_all_with(T342 C,T0* a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=(a1);
_i=(_i)-(1);
}
}
T2 r342fast_index_of(T342 C,T0* a1,T2 a2){
T2 R=0;
while (!(((R)>(a2))||((a1)==((void*)((C)[R]))))) {
R=(R)+(1);
}
return R;
}
void r342copy_from(T342 C,T342 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}
T339 r339realloc(T339 C,T2 a1,T2 a2){
T339 R=NULL;
R=calloc(a2,sizeof(T0*));
r339copy_from(R,C,(a1)-(1));
return R;
}
void r339set_all_with(T339 C,T0* a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=(a1);
_i=(_i)-(1);
}
}
T2 r339fast_index_of(T339 C,T0* a1,T2 a2){
T2 R=0;
while (!(((R)>(a2))||((a1)==((void*)((C)[R]))))) {
R=(R)+(1);
}
return R;
}
void r339copy_from(T339 C,T339 a1,T2 a2){
T2 _i=0;
_i=a2;
while (!((_i)<(0))) {
(C)[_i]=((a1)[_i]);
_i=(_i)-(1);
}
}